						<div class="row">
							<div class="col-xs-12">
								<!-- PAGE CONTENT BEGINS -->
								<div class="hidden">

									<div id="sidebar2" class="sidebar h-sidebar navbar-collapse collapse">
										<ul class="nav nav-list">
                                        
    <php>
		$m = M('auth_rule');
	    $dataaa = $m->where(array('pid'=>$_COOKIE['s'],'status'=>1))->select();
    	foreach ($dataaa as $kkk=>$vvv){
    		if(!$auth->check($vvv['name'], cookie('aid')) && cookie('aid') != 1){
    			unset($dataaa[$kkk]);
    		}
	    }


    </php>
    <foreach name="dataaa" item="k">                                        
											<li>
												<a href="{:U(''.$k['name'].'')}">
													<o class="font12 <if condition="(CONTROLLER_NAME.'/'.ACTION_NAME eq $k['name'])">rigbg</if>">{$k.title}</o>
												</a>

												<b class="arrow"></b>
											</li>
	</foreach>


										</ul><!-- /.nav-list -->
									</div><!-- .sidebar -->
								</div>

							</div><!-- /.col -->
						</div><!-- /.row -->